package ngames.com.sushitv.activity;

import android.content.Intent;
import android.os.Bundle;

import ngames.com.sushitv.R;
import ngames.com.sushitv.action.LoginAction;
import ngames.com.sushitv.base.BaseActivity;

/**
 * A login screen that offers login via email/password.
 */
public class LoginActivity extends BaseActivity {
    LoginAction mLoginAction;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        mLoginAction = new LoginAction(this, findViewById(R.id.base_layout_login));
        mLoginAction.onCreate();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        mLoginAction.onDestroy();
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        mLoginAction.onActivityResult(requestCode, resultCode, data);
    }
}

